<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="include/include :: header('修改租户')" />	
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="editForm" th:action="@{/admin/tenant}" th:object="${viewobject}">
			<input type="hidden" id="id" th:field="*{id}"/>
			<input type="hidden" name="oper" id="oper" th:value="${oper}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">租户名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" id="name" th:field="*{name}" maxlength="50">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">租户编码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="code" id="code" th:field="*{code}" maxlength="30" th:readonly="${oper}!='add'">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">状态：</label>
				<div class="col-sm-8">
				    <div class="radio-box" th:each="dict : ${@dict.getType('status_type')}">
						<input type="radio" th:id="${dict.id}" name="status" th:value="${dict.value}" th:field="*{status}">
						<label th:for="${dict.id}" th:text="${dict.label}"></label>
					</div>
				</div>
			</div>
			<div class="form-group select-time">
				<label class="col-sm-3 control-label is-required">开始时间：</label>
				<div class="col-sm-4">
					<input type="text" class="time-input" id="startTime" name="startTime" th:value="${#dates.format(viewobject.startTime, 'yyyy-MM-dd')}"/>
				</div>
			</div>
			<div class="form-group select-time">
				<label class="col-sm-3 control-label is-required">结束时间：</label>
				<div class="col-sm-4">
					<input type="text" class="time-input" id="endTime" name="endTime" th:value="${#dates.format(viewobject.endTime, 'yyyy-MM-dd')}"/>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include/include :: footer" />
	<script th:src="@{/pages/sysadm/tenant/tenantEdit.js}"></script>
</body>
</html>
